package constants

import "errors"

// var
var (
	ErrRecordIsExist                  = errors.New("Record is already exist")
	ErrRecordNotExist                 = errors.New("Record doese not exist")
	ErrRecordCreateFailed             = errors.New("Record create failed")
	ErrInvalidFiles                   = errors.New("Invalid files")
	ErrStationSnRequired              = errors.New("Station sn required")
	ErrDeviceSnRequired               = errors.New("Device sn required")
	ErrHubIsBinded                    = errors.New("Homebase is binded to user")
	ErrDeviceIsBinded                 = errors.New("Device is binded to homebase")
	ErrNickNameOrInvitesRequired      = errors.New("Nick name or invites required")
	ErrMembersRequired                = errors.New("Members required")
	ErrStationSnOrDeviceSnRequired    = errors.New("Station sn or device sn required")
	ErrPermissionsRequired            = errors.New("Permissions required")
	ErrUpFilesRequired                = errors.New("Up files required")
	ErrFeaturesRequired               = errors.New("Features required")
	ErrUserTrialLimit                 = errors.New("User trial limit")
	ErrCloudStorageExpired            = errors.New("Cloud storage expired")
	ErrCloudStoragePartialExpired     = errors.New("Cloud storage partial expired")
	ErrCloudStorageInsufficient       = errors.New("Cloud storage insufficient")
	ErrCloudInvalidStorage            = errors.New("Cloud invalid storage info")
	ErrInvalidSubscription            = errors.New("Invalid subscription")
	ErrInvalidOrderInfo               = errors.New("Invalid order info")
	ErrInvalidQueueConsumer           = errors.New("Invalid queue consumer")
	ErrInvalidCrontab                 = errors.New("Invalid crontab config")
	ErrNotImplement                   = errors.New("Not implement")
	ErrEmailMissing                   = errors.New("Email missing")
	ErrDeviceTypeMissing              = errors.New("Eevice type missing")
	ErrInvalidRsaKeys                 = errors.New("Invalid rsa keys")
	ErrDidAllocatingFailed            = errors.New("Did allocating failed")
	ErrEmptyReloadHostOrKey           = errors.New("Empty reload host or key")
	ErrConfigWatchStopped             = errors.New("Config watch stopped")
	ErrConfigChangedInvalid           = errors.New("Config changed invalid")
	ErrInvalidS3Key                   = errors.New("Invalid s3 key")
	ErrCloudPaymentSucceedUnprocessed = errors.New("Cloud payment succeeded unprocessed")
	ErrHomekitTokenAllocatingFailed   = errors.New("Homekit token allocating failed")
	ErrGetKvsURLFailed                = errors.New("Get kvs url failed")
	ErrRedisSetnxFailed               = errors.New("redis setnx failed")

	HTMLNotFound = "404.html"

	ErrCacheCaptchaExists = errors.New("id exists")
)
